package com.fowo.api.model.ship.plans.shipment;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fowo.api.common.validator.*;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/**
 * 发货计划货件关联 预览导入辅助模型(全字段为文本类型)
 * @author yl_ls
 */
@Getter
@Setter
public class ShipPlansShipmentImportPo {

  /** 发货计划ID */
  @ExcelProperty("发货计划ID")
  @LongString(
    message = "发货计划ID数值格式不正确",
    label = "发货计划ID",
    min = 0L
  )
  private String planId;

  /** 计划编号 */
  @ExcelProperty("计划编号")
  @Size(max = 50, message = "计划编号长度不能超过50")
  private String planOrder;

  /** 货件id */
  @ExcelProperty("货件id")
  @LongString(message = "货件id数值格式不正确", label = "货件id")
  private String shipmentId;

  /** 货件号 */
  @ExcelProperty("货件号")
  @Size(max = 50, message = "货件号长度不能超过50")
  private String shipmentOrder;

  /** 申报量 */
  @ExcelProperty("申报量")
  @IntegerString(message = "申报量数值格式不正确", label = "申报量", min = 0)
  private String shipmentNum;
}
